import { reactive, ref } from "vue";

export default function InitHook() {
  //表单数据
  const formState = reactive<{ content: string; nodeTime: any }>({
    content: "", //	轨迹信息
    nodeTime: undefined
  });

  //等待状态
  const loading = ref<boolean>(false);

  //表单ref
  const formDataRef = ref(null);

  return {
    formState,
    loading,
    formDataRef
  };
}
